package com.wxzz.elearing.course.api.server;

import com.alibaba.fastjson.JSONObject;
import com.wxzz.elearing.course.service.ITrainSurveyService;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/train-survey-api")
public class TrainSurveyApi {

    @Autowired
    private ITrainSurveyService trainSurveyService;

    /**
     * 查询培训调查绑定的用户
     *
     * @param trainSurveyId
     * @param wxUserIds
     * @return
     */
    @RequestMapping(value = "/selectWxUserTrainSurvey/{trainSurveyId}", method = RequestMethod.POST)
    public ReturnVO<List<JSONObject>> selectWxUserTrainSurvey(@PathVariable Long trainSurveyId, @RequestBody List<Long> wxUserIds) {
        return trainSurveyService.selectWxUserTrainSurvey(trainSurveyId, wxUserIds);
    }


}
